<h1>Practice</h1>

<% if flash[:notice] %>
<div id="flash_notice"><%=h flash[:notice] %></div>
<% end %>



<div  class="practice_list">
 <h2>Upcoming Practices</h2>
 <p><i><font color="red">All practices will be at 5pm</font></i></p>
 <ul>
 <% for practice in @upcoming_practice %>
 <li><%= link_to h(practice.name), practice_path(:id => practice.id)  %></li>
 <% end %>
 <%= no_practice(@upcoming_practice) %>
 </ul>
 
 </div>
 
 <div class="game_list">
 <h2>Past Practices</h2>
 <ul>
 <% for practice in @past_practice %>
 <li><%= link_to h(practice.name), practice_path(:id => practice.id)  %></li>
 <% end %>
 <%= no_practice(@past_practice) %>
 </ul>
 <br />
 <p class="add" align="right"><%= link_to "schedule new practice", new_practice_path %> </p>
 </div>
